package com.itheima.web;

import com.itheima.dto.SetmealDto;
import com.itheima.service.ReportService;
import com.itheima.service.SetmealService;
import com.itheima.support.PageResult;
import com.itheima.support.QueryPageBean;
import com.itheima.support.Result;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/report")
public class ReportController {

    @DubboReference
    private ReportService reportService;

    @GetMapping("/totalMemberCounts")
    public Result totalMemberCounts(){
        return new Result(reportService.totalMemberCounts());
    }
    @GetMapping("/orderSetmealProportion")
    public Result orderSetmealProportion(){
        return new Result(reportService.orderSetmealProportion());
    }

}
